package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 查询跨渠道资源配置详情请求参数
 * @date 2020-07-07 16:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "查询跨渠道资源配置详情请求参数", description = "查询跨渠道资源配置详情请求参数")
public class QueryChannelResourceReq extends BaseReqObj {

    private static final long serialVersionUID = -6323345189294468609L;

    /**
     * 渠道编码
     */
    @ApiModelProperty(value = "渠道编码", notes = "渠道编码", dataType = "String", required = true)
    @NotEmpty(message = "渠道编码不能为空")
    @Size(max = 5, message = "长度为 5")
    private String sourceChannelCode;

    /**
     * 目标渠道编码
     */
    @ApiModelProperty(value = "目标渠道编码", notes = "目标渠道编码", dataType = "String", required = true)
    @NotEmpty(message = "目标渠道编码不能为空")
    @Size(max = 5, message = "长度为 5")
    private String targetChannelCode;

}
